<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录</title>
</head>
<body>
<h1>用户登录</h1>
<form action="/login" method="post">
    <label for="username">用户名:</label>
    <input type="text" id="username" name="username" required><br><br>

    <label for="password">密码:</label>
    <input type="password" id="password" name="password" required><br><br>

    <button type="submit">登录</button>
</form>

<!-- 显示消息 -->
<div>
    <p th:text="${msg}"></p>
</div>
</body>
</html>